
from sys import argv, exit

from PyQt5.QtWidgets import QApplication
from .mainwindow import MainWindow


def main():
    app = QApplication(argv)
    main_win = MainWindow()
    main_win.show()
    
    for p in argv[1:]:
        main_win.open_image(p)

    exit(app.exec_())


if __name__ == '__main__':
    main()

